package com.study.bootstudy.util;

/**
 * @Author RenPu
 * @Date 2022/6/27 18:01
 * @Version 1.0
 * @Description: Api编码枚举类
 **/

public enum ApiCode implements EnumBase  {

    SERVICE_ERROR(700,"业务逻辑执行错误！！！！！"),
    PARAM_FORMAT_INCORR(704,"参数格式类型异常！！！！"),
    PARAM_INVALID(705,"");
    private final int code;
    private final String msg;

    ApiCode(int code,String msg) {
        this.code=code;
        this.msg=msg;
    }
    @Override
    public int getCode() {
        return 0;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }
}
